Jarek Radosz
694b5f108b
DEV: Fix various rubocop lints ( #24749 )
...
These (21 + 3 from previous PRs) are soon to be enabled in rubocop-discourse:
Capybara/VisibilityMatcher
Lint/DeprecatedOpenSSLConstant
Lint/DisjunctiveAssignmentInConstructor
Lint/EmptyConditionalBody
Lint/EmptyEnsure
Lint/LiteralInInterpolation
Lint/NonLocalExitFromIterator
Lint/ParenthesesAsGroupedExpression
Lint/RedundantCopDisableDirective
Lint/RedundantRequireStatement
Lint/RedundantSafeNavigation
Lint/RedundantStringCoercion
Lint/RedundantWithIndex
Lint/RedundantWithObject
Lint/SafeNavigationChain
Lint/SafeNavigationConsistency
Lint/SelfAssignment
Lint/UnreachableCode
Lint/UselessMethodDefinition
Lint/Void
Previous PRs:
Lint/ShadowedArgument
Lint/DuplicateMethods
Lint/BooleanSymbol
RSpec/SpecFilePathSuffix
2023-12-06 23:25:00 +01:00
David Taylor
436b3b392b
DEV: Apply syntax_tree formatting to `script/*`
2023-01-09 11:13:22 +00:00
Peter Zhu
c5fd8c42db
DEV: Fix methods removed in Ruby 3.2 ( #15459 )
...
* File.exists? is deprecated and removed in Ruby 3.2 in favor of
File.exist?
* Dir.exists? is deprecated and removed in Ruby 3.2 in favor of
Dir.exist?
2022-01-05 18:45:08 +01:00
Régis Hanol
7a6d772ad2
DEV: couple bug fixes in getsatisfaction importer
...
- Ensure we don't modify a frozen string
- Ensure we have a slug before trying to create a permalink
2020-07-06 17:41:28 +02:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Gerhard Schlager
cf9965fd54
Add rake task for reordering posts by creation_date
2018-03-29 14:42:41 +02:00
Gerhard Schlager
a0d5e243fd
Improve the import script for "Get Satisfaction"
...
* Works with the current column layout exported as Excel file
* Tries to fix invalid CSV when it wasn't exported from Excel
* Imports categories
* Imports topics into the correct category
* Allows skipping archived topics
* Allows skipping private topics
* Makes use of the latest features from the base importer
* Some minor fixes and documentation updates
2018-03-19 14:58:17 +01:00
Guo Xiang Tan
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
Arpit Jalan
ed0b355e15
generalize permalink URL in GetSatisfaction import script
2016-09-08 15:01:40 +05:30
Arpit Jalan
bade41db42
improve GetSatisfaction import script
2016-09-08 14:57:20 +05:30
Sam
8cb380354e
leftover debug code
2015-03-23 15:49:02 +11:00
Sam
23513eaf87
get satisfaction has topics with no body
2015-03-23 12:16:43 +11:00
Sam
24e4808aeb
ensure titles exist
2015-03-23 11:58:17 +11:00
Sam
c5dd11f64c
we dont need much of the escaping magic cause for whatever crazy reason
...
this CSV format does not allow newlines
2015-03-20 16:51:46 +11:00
Sam
85df7436bb
added get satisfaction importer for gradle
2015-03-19 16:09:25 +11:00